import {Inter, Calistoga} from "next/font/google";
import "./globals.css";
import { Footer } from "@/sections/Footer";
import { Header } from "@/sections/Header";

// 预加载字体以减少布局偏移
const inter = Inter({ 
  subsets: ["latin"],
  variable: "--font-sans",
  display: 'swap'
});

const calistoga = Calistoga({
  subsets: ["latin"],
  weight: ["400"],
  variable: "--font-serif",
  display: 'swap'
});

export const metadata = {
  title: '超灵感工作室illli Ai Studio',
  description: '超灵感工作室illli Ai Studio - 创新AI解决方案',
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body 
        className={`${inter.variable} ${calistoga.variable} bg-indigo-950 text-white antialiased font-sans`}
        suppressHydrationWarning
      >
        <Header />
        <main className="min-h-screen">
          {children}
        </main>
        <Footer />
      </body>
    </html>
  );
}
